﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HATerrain
{
    [Serializable]
    public class HAPoint
    {

        public HAPoint()
        { 
        }

        public HAPoint(double x, double y, double z)
        {
            this._x = x;
            this._y = y;
            this._z = z;
        }


        private double _x = 0;

        public double X
        {
            get { return _x; }
            set { _x = value; }
        }

        private double _y = 0;

        public double Y
        {
            get { return _y; }
            set { _y = value; }
        }

        private double _z = 0;

        public double Z
        {
            get { return _z; }
            set { _z = value; }
        }

        
        public static HAPoint operator -(HAPoint point1,HAPoint point2)
        {
            return new HAPoint(point1.X-point2.X,point1.Y-point2.Y,point1.Z-point2.Z);
        }
       

    }
}
